package com.vote.entity;


public class VoteOption {
	private int id;
	private int voteId;
	private String title;
	private int seqNumber;
	private int byUser;
	private int ticketNumber;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getVoteId() {
		return voteId;
	}
	public void setVoteId(int voteId) {
		this.voteId = voteId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public int getSeqNumber() {
		return seqNumber;
	}
	public void setSeqNumber(int seqNumber) {
		this.seqNumber = seqNumber;
	}
	public int getByUser() {
		return byUser;
	}
	public void setByUser(int byUser) {
		this.byUser = byUser;
	}
	public int getTicketNumber() {
		return ticketNumber;
	}
	public void setTicketNumber(int ticketNumber) {
		this.ticketNumber = ticketNumber;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + byUser;
		result = prime * result + id;
		result = prime * result + seqNumber;
		result = prime * result + ticketNumber;
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		result = prime * result + voteId;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		VoteOption other = (VoteOption) obj;
		if (byUser != other.byUser)
			return false;
		if (id != other.id)
			return false;
		if (seqNumber != other.seqNumber)
			return false;
		if (ticketNumber != other.ticketNumber)
			return false;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (voteId != other.voteId)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "VoteOption [id=" + id + ", voteId=" + voteId + ", title=" + title + ", seqNumber=" + seqNumber
				+ ", byUser=" + byUser + ", ticketNumber=" + ticketNumber + "]";
	}
	

}
